package com.ta.gulimall.product.feign;

import com.ta.gulimall.common.view.to.SkuFullReductionTo;
import com.ta.gulimall.common.view.to.SpuBoundTo;
import com.ta.gulimall.common.utils.system.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    /**
     * 保存spu积分与成长值信息
     * @param spuBoundTo
     * @return
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBound(@RequestBody SpuBoundTo spuBoundTo);

    /**
     * 保存满减优惠与满减打折与会员价格
     * @param skuFullReductionTo
     * @return
     */
    @PostMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);
}
